package com.nhim.cms;

import java.util.ArrayList;
import java.util.List;

public class CustomWidgetProperty {
	
        private String name;
		
        /**
         * @return Name of setter
         */
        public String getName()
        {
            return name;
        }
        public void setName(String name)
        {
        	this.name = name;
        }

        private String description;
		
        /**
         * @return setter which will be used as the label
         */
        public String getDescription()
        {
           return description;
        }
        
        public void setDescription(String description)
        {
        	this.description = description;
        }

        private EDataType dataType;
		
        public EDataType getDataType()
        {
            return dataType;
        }
        public void setDataType(EDataType dataType)
        {
        	this.dataType = dataType;
        }

        private EDisplayType displayType;
		
        public EDisplayType getDisplayType()
        {
        	return displayType;
        }
        public void setDisplayType(EDisplayType displayType)
        {
        	this.displayType = displayType;
        }
       
        private List<String> displayValues;
	
        public List<String> getDisplayValues()
        {
            return displayValues;
        }
        
        public void setDisplayValues(List<String> values)
        {
        	this.displayValues = values;
        }

        public enum EDisplayType
        {
			
            Textbox,
			
            Textarea,
			
            DateTime,
			
            Combobox,
            
            RadiobuttonList,
            
            CheckboxList,

            Listbox,
		
        }
        public enum EDataType
        {
        	String,
        	Integer,
        	Float,
        	Boolean,
        	DateTime,
        }
        
    	public CustomWidgetProperty(String name,  String description, EDataType dataType,EDisplayType displayType, List<String> displayValues)
		{
			this.name = name;
			this.dataType = dataType;
			this.description = description;
			this.displayType = displayType;
			this.displayValues = displayValues;
		}
    	public CustomWidgetProperty()
		{
			this.name = "default";
			this.dataType = EDataType.String;
			this.description = "default";
			this.displayType = EDisplayType.Textbox;
			this.displayValues = new ArrayList<String>();
		}

        
}
